package com.yinhai.message.manage.msgmg.dao.impl;

import com.yinhai.core.common.api.base.IPage;
import com.yinhai.core.service.ta3.domain.dao.HibernateDAO;
import com.yinhai.message.core.po.MessagePo;
import com.yinhai.message.manage.msgmg.dao.IMessageMgDao;
import com.yinhai.message.manage.msgmg.vo.MessageDetailVo;
import com.yinhai.message.manage.msgmg.vo.MessageFileVo;
import com.yinhai.message.manage.msgmg.vo.MessageVo;

import java.util.List;
import java.util.Map;

/**
 * @author aolei 2017年3月28日19:38:08
 *         <p>
 *         messagedao的实现类
 */
public class MessageMgDaoImpl extends HibernateDAO<MessagePo> implements IMessageMgDao {
    @Override
    public IPage<MessageVo> queryMessagesByParam(String hql, Map param, int start, int limit, String gridId) {
        return super.selectFromMultiTableWithPage(hql, param, start, limit, gridId);
    }

    @Override
    public IPage<MessageDetailVo> queryMessageDetailsByMsgId(String hql, Map param, int start, int limit, String gridId) {
        return super.selectFromMultiTableWithPage(hql, param, start, limit, gridId);
    }

    @Override
    public String queryMessageContextByMessageId(String hql, String param) {
        return super.selectFiled(hql, param);
    }

    @Override
    public List<MessageDetailVo> getAlllUserInfo(String hql, String destory, String effective) {
        return super.selectFromMultiTable(hql, destory, effective);
    }

    @Override
    public List<MessageFileVo> queryMessageFilesByMessageId(String hql, String messageId) {
        return super.selectFromMultiTable(hql, messageId);
    }

}
